1. /* sdfexpow.cpp by K.Tsuru */
  2. // function ID 3302 DRADIX
  3. /***********************************
  4. SDouble class
  5. It provides e^n : n-th power of E().
  6. exp(n) < DRADIX^DRADIX_EXP_MAX
  7. ************************************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. SDouble Expower(long n){
  12. if(n == 0) return 1.0;
  13. SDouble exp1;
  14. if(n > 0) exp1 = E();
  15. else exp1 = RecE(); // 1/E()
  16. // Check the condition "exp(n) < DRADIX^DRADIXEXP_MAX" in Dpow() function.
  17. return Dpow(exp1, labs(n));
  18. }

sdfexpow.cpp : last modifiled at 2016/09/02 11:13:34(505 bytes)
created at 2017/10/07 10:22:50
The creation time of this html file is 2017/10/07 11:29:39 (Sat Oct 07 11:29:39 2017).